package com.hzy.fivepalace.admin.dao;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "新增商品实体对象")
public class AdminAddGoods {


    @ApiModelProperty(value = "商品编码,非必填")
    private String goodsSn;

    @ApiModelProperty(value = "商品名称,必填", required = true)
    private String name;

    @ApiModelProperty(value = "原价,必填", required = true)
    private BigDecimal counterPrice;

    @ApiModelProperty(value = "商品所属类目ID,非必填,但是新类目和老类目必须有一个")
    private Integer categoryId;

    @ApiModelProperty(value="商品所属新类目ID,非必填,但是新类目和老类目必须有一个")
    private Integer categoryIdNew;

    @ApiModelProperty(value = "商品宣传图片列表，采用JSON数组格式,必填", required = true)
    private String[] gallery;

    @ApiModelProperty(value = "商品关键字，采用逗号间隔,非必填")
    private String keywords;

    @ApiModelProperty(value = "商品简介,非必填")
    private String brief;

    @ApiModelProperty(value = "是否上架,必填", required = true)
    private Boolean isOnSale = true;

    @ApiModelProperty(value = "商品详细介绍，是富文本格式,必填", required = true)
    private String detail;

    @ApiModelProperty(value = "排序,非必填,默认为0")
    private Short sortOrder;

    @ApiModelProperty(value = "是否新品首发,非必填,默认为false")
    private Boolean isNew = false;


    @ApiModelProperty(value="销量")
    private Integer sales;

    @ApiModelProperty(value = "是否热门推荐，如果设置则可以在显示在首页热门推荐,非必填,默认为false")
    private Boolean isHot = false;

    @ApiModelProperty(value = "商品单位，例如件、盒,非必填")
    private String unit;


    @ApiModelProperty(value="是否支持自提")
    private Boolean isSince= false;

    @ApiModelProperty(value="分享时显示价格")
    private Boolean isOpenPrice= false;


    @ApiModelProperty(value = "规格类型:1:单层,2:双层")
    private Integer specificationType;

    @ApiModelProperty(value="视频url")
    private String videoUrl;

    @ApiModelProperty(value = "单层商品规格列表")
    private List<AdminAddGoodsSpecification> specificationList;

    @ApiModelProperty(value = "双层商品主规格")
    private AdminAddGoodsBothSpecificationMain bothSpecification;

    @ApiModelProperty(value="自动收货:0否,1是")
    private Byte brokerageType;
}
